package com.itb.copter.function;

import org.json.JSONException;
import org.json.JSONObject;

import com.itb.copter.constan.Constans;

public class Json {

	public static String getValue(String jsonString,String key){
		String value = null;
		JSONObject jsonObject = null;
		try {
			jsonObject = new JSONObject(jsonString);
			value = jsonObject.getJSONObject("person").get(key).toString();
		
		} catch (JSONException e) {
			e.printStackTrace();
		}
		
		return value;
	}
}
